package com.example.ecommercemanagesystem.service.impl;



import com.example.ecommercemanagesystem.dao.UserDao;
import com.example.ecommercemanagesystem.entity.User;
import com.example.ecommercemanagesystem.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public List<User> getAllUser() {
        return userDao.queryAllUser();
    }

    @Override
    public User getUser(String user_name, String user_pwd) {
        return userDao.getUser(user_name, user_pwd);
    }
}
